﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace KC.Business.RouterApi.Result.Status
{
	public class DeviceInfo
	{
		private DeviceInfo() { }
		public decimal FirmwareVersion { get; private set; }
		public decimal FirmwareDate { get; private set; }
		public string ConnectionType { get; private set; }
		public string CableStatus { get; private set; }
		public string NetworkStatus { get; private set; }
		public TimeSpan ConnectionUptime { get; private set; }
		public IPAddress MacAddress { get; private set; }
		public IPAddress PublicIpAddress { get; private set; }
		public IPAddress PublicSubnetMask { get; private set; }
		public IPAddress PrimaryDNS { get; private set; }
		public IPAddress SecondaryDNS { get; private set; }
		public IPAddress PrivateIpAddress { get; private set; }
		public IPAddress PrivateSubnetMask { get; private set; }
		public bool isDhcpServerEnabled { get; private set; }
		public List<LanComputer> LanComputers { get; private set; }
		public List<string> IgmpMulticastMemberships { get; private set; }

		public static DeviceInfo get(string ip, string username, string password)
		{
			DeviceInfo deviceinfo = new DeviceInfo();

			return null;
		}



	}
	public class LanComputer
	{
		public LanComputer(string ip, string name, string mac) {
			IP = IPAddress.Parse(ip);
			Name = name;
			MAC = mac; }
		public IPAddress IP { get; set; }
		public string Name { get; set; }
		public string MAC { get; set; }
	}
}
